#!/bin/sh
echo "--------Start Local Services--------"
ifconfig lo up

echo "********Starting telnetd********"
telnetd
dropbear

#echo "********Starting boa********"
#mkdir /var/log/boa
#boa

#echo "********Starting Samba********"
#nmbd -D
#smbd -D

echo "*********alsa restore***********"
#alsactl restore

echo "*********NTP SYNC************"
#ntpd -d -n -q -p 1.openwrt.pool.ntp.org

echo "*********LCD SIZE************"
fbset | grep 800x480
if [ $? == 0 ] 
then
    echo "LCD default size 800x480"
    ln -f -s /etc/MiniGUI.cfg.p70 /etc/MiniGUI.cfg
else
    echo "LCD size is 480x272"
    ln -f -s /etc/MiniGUI.cfg.p43 /etc/MiniGUI.cfg
fi 

echo "*********touchscreen************"
cd /home/root
#. /usr/sbin/run-calibrate.sh 
#./button &

